package com.example.demo.business.bean.vo;

import com.example.demo.business.bean.entity.HStar;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class StarItemVo {
    private int ids;
    private String name;
    private boolean isCollection;
    private String img;

    public StarItemVo(HStar hStar) {
        this.setCollection(true);
        this.setImg(hStar.getImg());
        this.setName(hStar.getName());
        this.setIds(hStar.getId());
    }
}
